#ifndef RESOURCE_WINDOW
#define RESOURCE_WINDOW

#include <sdk_global.h>
#include <WindowBase.h>
#include <QTreeView>
#include <QFileSystemModel>
#include <QAction>
#include <QList>
#include <QMenu>


class QDESIGNER_SDK_EXPORT ResourceWindow : public WindowBase
{
    Q_OBJECT
public:
    ResourceWindow(QWidget *parent = 0);
    virtual ~ResourceWindow();
	virtual Qt::DockWidgetArea dockWidgetArea();
    virtual void setUpInitialShowHide();
    void setRootPath(const QString& rootPath);
    QString getCurrentFileAbsolutePath();
    QString getCurrentFilePath();
public slots:
    void actionAddFileTriggered();
    void actionAddFolderTriggered();
    void actionDeleteTriggered();
protected:
    bool copyFileToPath(QString sourceDir ,QString toDir, bool coverFileIfExist);

private:
    QList<QAction*> m_actionList;
    QMenu* m_menu;
    QTreeView* m_treeView;
    QFileSystemModel* m_fileSystemModel;
};



#endif // RESOURCE_WINDOW
